﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class Flight : BusinessObject
	{
        public Flight()
        {
            AddRule(new ValidateMandatory("FlightCode"));
            AddRule(new ValidateMandatory("AircraftId"));
            AddRule(new ValidateMandatory("DepartureAirport"));
            AddRule(new ValidateMandatory("ArrivalAirport"));
           
        }
        public int FlightId { get; set; }
        public string DepartureAirport { get; set; }
        public string ArrivalAirport { get; set; }
        public DateTime DepartureDateTime { get; set; }
        public DateTime ArrivalDateTime { get; set; }
        public string DepartureTerminal { get; set; }
        public string ArrivalTerminal { get; set; }
        public string Distance { get; set; }
        public decimal? TaxSurcharge { get; set; }
        public string FlightStatus { get; set; }
        public int AircraftId { get; set; }
        public string FlightCode { get; set; }
        public FlightSeat FlightSeat { get; set; }
        public List<Ticket> TicketsCollection { get; set; }
	}
}


